package base.annotationtest;

public class AnnotationMain {

	public static void main(String[] args) throws ClassNotFoundException {
		Class<?> cls = Class.forName("base.annotationtest.AService");
		//类信息是否是用了某个注解
		boolean b = cls.isAnnotationPresent(Service.class);
		System.out.println(b);
		
		Class<?> cls2 = Class.forName("base.annotationtest.BService");
		b = cls2.isAnnotationPresent(Service.class);
		System.out.println(b);
	}

}
